Skip to content

Add --no-color flag and --output-format json for non-TTY output#114

Merged
that-github-user merged 1 commit into
mainfrom
issue-61-no-color
Mar 28, 2026
Merged

Add --no-color flag and --output-format json for non-TTY output#114
that-github-user merged 1 commit into
mainfrom
issue-61-no-color

Conversation

@that-github-user

Copy link
Copy Markdown
Owner

Summary

  • --no-color sets NO_COLOR env var, picocolors disables automatically
  • --output-format json outputs raw EnsembleResult JSON to stdout (for piping)
  • 4 new tests

Generated by thinktank Opus — 5 agents, 3/5 pass. Copeland: Agent #2 at +2 (won on tests + fewer files despite being outside the majority cluster).

Change type

  • New feature

Related issue

Closes #61

How to test

npm test  # 138 tests pass
thinktank run "task" -n 2 --no-color  # no ANSI codes
thinktank run "task" -n 2 --output-format json | jq .recommended

Breaking changes

  • This PR introduces breaking changes

🤖 Generated with thinktank (Opus)

--no-color sets NO_COLOR env so picocolors disables itself.
--output-format json outputs raw EnsembleResult JSON to stdout
instead of formatted display, useful for piping to other tools.

Generated by thinktank Opus (5 agents, 3 pass, Copeland: #2 at +2).

Closes #61

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@that-github-user that-github-user merged commit f1c1423 into main Mar 28, 2026
4 checks passed
@that-github-user that-github-user deleted the issue-61-no-color branch March 28, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect non-TTY output and add --no-color / --output-format flags

1 participant